
const wechat = require('../controller/wechat.js')
console.log(wechat)
var routers = require("koa-router")
const router = new routers()


import config from '../config'
import reply from '../wechat/reply'
import wechatMiddle from '../wechat-lib/middleware'


router.all("/",wechatMiddle(config.wechat,reply))


//router.get("/hear",wechat.hear)



router.get("/signature",wechat.signature)

router.get("/redirect",wechat.redirect)

router.get("/oauth",wechat.oauth)
module.exports = router